#ifndef ASSET_H
#define ASSET_H

#include <string>
#include "rapidxml.hpp"

namespace Engine
{
	class Asset
	{
		protected:
			std::string m_name;

		public:
			virtual ~Asset() = 0{}
			virtual bool Load(const std::string& filename) = 0;
			virtual bool Load(rapidxml::xml_node <>* node) = 0;

			Asset(){}

			bool IsLoaded() const {return m_name.size() > 0;}
			const std::string& GetName() const {return m_name;}
	};
}

#endif